
package com.jeequan.jeepay.core.model.params;

import com.alibaba.fastjson.JSONObject;
import com.jeequan.jeepay.core.constants.CS;
import com.jeequan.jeepay.core.model.params.pmopay.PmopayNormalMchParams;

/**
 * 抽象类 普通商户参数定义
 */
public abstract class NormalMchParams {

    public static NormalMchParams factory(String ifCode, String paramsStr) {
        if (CS.IF_CODE.PMOPAY.equals(ifCode)) {
            return JSONObject.parseObject(paramsStr, PmopayNormalMchParams.class);
        }
        return null;
    }

    /**
     * 敏感数据脱敏
     */
    public abstract String deSenData();

}
